package com.chahua.organized.common;

/**
 * @author chahua
 * @date 2022/4/9 18:06
 **/
public enum BaseResponseCode {

    SUCCESS(0,"操作成功"),
    FAIL(-1,"操作异常");

    /**
     * 响应码code
     */
    private int code;
    /**
     * 响应信息message
     */
    private String message;

    /**
     * 构造方法
     * @param code 响应码
     * @param message 响应信息
     */
    BaseResponseCode(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
